﻿using FwProject.ShoppingMall.Com;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.Com.Dto{
    /// <summary>
    /// 订单查询过滤信息
    /// </summary>
    public class ShopOrderFilter
    {
        /// <summary>
        /// 关键词
        /// </summary>
        public string keyword { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public ShopOrderStatus? ShopOrderStatus { get; set; }

        /// <summary>
        /// 发货状态
        /// </summary>
        public DeliveryStatus? DeliveryStatus { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        public PayStatus? PayStatus { get; set; }

        /// <summary>
        /// 下单日期
        /// </summary>
        public string CreationTime { get; set; }
    }

    /// <summary>
    /// 订单状态
    /// </summary>
    public enum ShopOrderStatus : byte
    {
        /// <summary>
        /// 待结算
        /// </summary>
        SettleAccounts,
        /// <summary>
        /// 待发货
        /// </summary>
        Ship,
        /// <summary>
        /// 待收货
        /// </summary>
        Receipt,

        /// <summary>
        /// 售后
        /// </summary>
        AfterSale,
    }
}
